/*
 * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.iec.edp.caf.sumgr.api;

import io.iec.edp.caf.msu.api.entity.GspAppServerInstance;
import io.iec.edp.caf.msu.api.entity.GspSuInstance;

import java.util.List;

/**
 * MSU服务接口
 * 已作废，请使用{@link io.iec.edp.caf.msu.api.MsuService} 替换
 * 无法删除：被 {@link io.iec.edp.caf.datapermission.runtime.core.config.DataPermissionRuntimeAutoConfig} 依赖
 */
@Deprecated
public interface SUService {

    @Deprecated
    String getIpAddress(String appServerName);

    @Deprecated
    String getPort(String appServerName);

    boolean isLocalInvoke(String serviceUnitName);

    @Deprecated
    String getRemoteBaseUrl(String appServerName);

    @Deprecated
    List<GspAppServerInstance> getGspAppServerInfo(String appServerName);

    @Deprecated
    List<GspAppServerInstance> getGspAppServerInfoBySu(String suName);

    @Deprecated
    GspSuInstance getGspSuInfo(String suName);

    @Deprecated
    List<GspSuInstance> getGspSuByAppServer(String appServerName);

}
